package com.ruoyi.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品评论对象 prod_comments
 * 
 * @author ruoyi
 * @date 2023-08-09
 */
public class Comments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long id;

    /** 头像 */
    @Excel(name = "头像")
    private String  prodAvatar;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 内容 */
    @Excel(name = "内容")
    private String comment;

    /** 购买的商品图片 */
    @Excel(name = "购买的商品图片")
    private String images;

    /** 评论状态 */
    @Excel(name = "评论状态")
    private String status;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;

    /*购买参数*/
    @Excel(name="购买参数")
    private String prodParam;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }

    public String getProdAvatar() {
        return prodAvatar;
    }

    public void setProdAvatar(String prodAvatar) {
        this.prodAvatar = prodAvatar;
    }

    public String getProdParam() {
        return prodParam;
    }

    public void setProdParam(String prodParam) {
        this.prodParam = prodParam;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("createdAt", getCreatedAt())
            .append("comment", getComment())
            .append("images", getImages())
            .append("status", getStatus())
            .append("rating", getRating())
            .toString();
    }
}
